﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XLua;
public class HelloWorld01 : MonoBehaviour {
    private LuaEnv luaenv;
    // Use this for initialization
    void Start() {
        luaenv = new LuaEnv();
        //符合Lua语法输出Hello World
        luaenv.DoString("print('Hello World')");


    }
    private void OnDestroy()
    {
        luaenv.Dispose();
    }
	
}
